package com.xjm.entity.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

@Data
public class FileDto {
    @NotNull(message = "文件不能为空")
    private MultipartFile file;
    @NotNull(message = "文件名不能为空")
    private String fileName;
    @NotNull(message = "文件类型不能为空")
    private String fileType;
    @NotNull(message = "文件md5不能为空")
    private String md5;
    private String size;
    private Integer index;
    private Integer total;
}
